package com.reebake.ideal.security.config;

import com.reebake.ideal.security.access.BearerTokenAuthenticationProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ClientAuthenticationProviderConfig {

    @Bean
    @ConditionalOnMissingBean
    BearerTokenAuthenticationProvider bearerTokenAuthenticationProvider() {
        return new BearerTokenAuthenticationProvider();
    }
}
